package cn.big.bigd.biocode.util;

import lombok.*;

@Getter
@Setter
@ToString
public class Country implements Comparable<Country> {

    private  String code;
    private String name;


    @Override
    public int compareTo(Country o) {

        int i =this.getName().compareTo(o.getName());

        if(i==0){
            return  this.getCode().compareTo(o.getCode());
        }
        return i ;
    }
}